package com.freewater.springboot.demo.spel.inbeandef;

import org.springframework.beans.factory.annotation.Value;

public class SomeBean {

    @Value("#{T(Math).random() * 100.0}")
    private double randomNum;

    @Value("#{systemProperties['user.country']}")
    private String defaultLocale;

    public double getRandomNum() {
        return randomNum;
    }

    public String getDefaultLocale() {
        return defaultLocale;
    }
}
